<?php
$session = Session::getInstance();
?><!--  start nav -->
<div class="nav">
    <div class="table">

        <ul class="<?php if($session->get('component') == 'dashboard') echo 'current'; else echo 'select';?>">
            <li><a href="<?php echo Utility::getSiteUrl();?>"><b>Dashboard</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]>
                <table>
                    <tr>
                        <td><![endif]-->
               
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
        </ul>

        <div class="nav-divider">&nbsp;</div>

        <ul class="<?php if($session->get('component') == 'category') echo 'current'; else echo 'select';?>">
            <li><a href="<?php echo Utility::getSiteUrl();?>/category"><b>Danh mục</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]>
                <table>
                    <tr>
                        <td><![endif]-->
                <div class="select_sub show">
                    <ul class="sub">
                        <li <?php if($session->get('component') == 'category' && $session->get('action') == 'index') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/category">Tất cả danh mục</a></li>
                        <li <?php if($session->get('component') == 'category' && $session->get('action') == 'add') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/category/add">Tạo mới</a></li>
                    </ul>
                </div>
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
        </ul>

        <div class="nav-divider">&nbsp;</div>

        <ul class="<?php if($session->get('component') == 'post') echo 'current'; else echo 'select';?>">
            <li><a href="<?php echo Utility::getSiteUrl();?>/post"><b>Bài viết</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]>
                <table>
                    <tr>
                        <td><![endif]-->
                <div class="select_sub show">
                    <ul class="sub">
                        <li <?php if($session->get('component') == 'post' && $session->get('action') == 'index') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/post">Tất cả bài viết</a></li>
                        <li <?php if($session->get('component') == 'post' && $session->get('action') == 'add') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/post/add">Tạo mới</a></li>
                    </ul>
                </div>
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
        </ul>

        <div class="nav-divider">&nbsp;</div>
		
		<ul class="<?php if($session->get('component') == 'modules') echo 'current'; else echo 'select';?>">
            <li><a href="<?php echo Utility::getSiteUrl();?>/modules"><b>Quản lí modules</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]>
                <table>
                    <tr>
                        <td><![endif]-->
                <div class="select_sub show">
                    <ul class="sub">
                        <li <?php if($session->get('component') == 'post' && $session->get('action') == 'index') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/post">Tất cả bài viết</a></li>
                        <li <?php if($session->get('component') == 'post' && $session->get('action') == 'add') echo "class='sub_show'"?>><a href="<?php echo Utility::getSiteUrl();?>/post/add">Tạo mới</a></li>
                    </ul>
                </div>
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
        </ul>
		
			
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>